//
//  FindNewsCollectionModel.m
//  MoXiProject
//
//  Created by 沈晨宇 on 2017/7/20.
//  Copyright © 2017年 周筱雯. All rights reserved.
//

#import "FindNewsCollectionModel.h"

@implementation FindNewsCollectionModel
+ (NSDictionary *)JSONKeyPathsByPropertyKey{
    
    //自定义               网络
    return @{@"imageurl"       :@"imgUrl",
             @"newsId"        :@"newsId",
             @"newsType"        :@"typeName",
             @"readNum"        :@"readNum",
             @"createTime"        :@"createTime",
             @"title"        :@"title"
             };
    
}

+ (NSValueTransformer *)JSONTransformerForKey:(NSString *)key{
    
    return [MTLValueTransformer reversibleTransformerWithBlock:^id(id value) {
        return DEF_OBJECT_TO_STIRNG(value);
    }];
    
}

@end
